<?php

namespace app\wx\validate;

use think\Validate;

class ParkValidate extends Validate
{
    protected $rule = [
        ['park_id', 'require', '请选择停车场'],
        ['day', 'require', '预约天数不能为空'],
        ['order_time', 'require', '预约时间不能为空'],
    ];

    protected $scene = [
        'add' => ['order_time','day','park_id'],
        // 'addData' => ['name','province','city'],
        // 'addData' => ['name','province','city','dist','top_cid','mobile'],
    ];
}